package com.lkd.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lkd.entity.TaskEntity;
import com.lkd.entity.UserCountEntity;
import com.lkd.vo.UserWorkVO;
import org.apache.ibatis.annotations.*;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

@Mapper
public interface TaskReportDao {

    /**
     *
     * @param taskStatus 状态：处理中、取消、完成
     * @param taskType  1代表运营人员 2代表运维人员
     * @return
     */
    Integer selectTaskReport(@Param("taskStatus") Integer taskStatus,
                             @Param("taskType") int taskType,
                             @Param("start")LocalDateTime start,
                             @Param("end")LocalDateTime end
                             );

    Page<UserWorkVO> userWorkTop10(Page<UserWorkVO> page,@Param("start") LocalDate start, @Param("end") LocalDate end
            , @Param("taskType") int taskType, @Param("regionId") Long regionId);
}
